package com.game.majiang.vo;

import java.sql.Types;

import com.game.server.db.Parameter;
import com.game.server.db.ParameterType;
import com.game.server.db.SqlHelper;

import lombok.Data;

@Data
public class RadioAndMessageVo {

	int type;
	String content;
	public static String getList(int t) {
		
		String sql = "select content from radioandmessage where type=?";
		Parameter p1 = new Parameter(Types.INTEGER, t, ParameterType.Input);
		Object rs = SqlHelper.execScalar(sql, p1);
		if(rs != null){
			return (String) rs;
		}else{
			return "";
		}
		
	}
	
	
	
}
